<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/support/taglibs.jsp" %>
<stripes:layout-render name="/support/layout/standard.jsp" title="Organizations" page="organizations">
<stripes:layout-component name="contents">
   Below is the sample test table...
   
   <jsp:useBean id="isernManager" scope="page"
           class="edu.hawaii.myisern.model.IsernManager"/>
   
<table class='list'>
   <tr>
      <th>Name</th>
      <th>Contact</th>
   </tr>
    <c:forEach items="${isernManager.organizations}" var="organization" varStatus="loop"> 
        <tr><td>
        <c:choose >
          <c:when test="${not empty organization.homePage}">
           <a href='${organization.homePage}'> ${organization.name} </a>
          </c:when>
          <c:otherwise>
          ${organization.name} 
          </c:otherwise>
        </c:choose>
       </td><td>${organization.contact} </td>
        <td><stripes:link href="OrganizationForm.action" event="preEdit">
                                Edit
                          <stripes:param name="id" value="${organization.name}"/>
                            </stripes:link> </td> </tr>
    </c:forEach>
</table>   
    </stripes:layout-component>
</stripes:layout-render>
